include ../../Makefile.param 
#-fvisibility=default|internal|hidden|protected

CFLAGS := -Wall -fvisibility=hidden -g $(INC_PATH)  
#-DMEMWATCH -DMW_STDIO 

APP_SRCS    :=  $(wildcard *.c)
APP_OBJS    :=  $(APP_SRCS:%.c=%.o)

TARGET := libmdk_app.so

.PHONY : clean all

all:
	#svn up
	$(CC) $(CFLAGS) -fPIC  -c $(APP_SRCS)
	$(CC) -s -shared -o ./$(TARGET) $(APP_OBJS)
	cp ./$(TARGET) /mnt/hgfs/pub/
	cp ./$(TARGET) ../out/	

clean:
	rm $(APP_OBJS)

